package com.scs.application.modules.base.util;

import com.scs.application.modules.base.service.DeptService;
import com.scs.application.modules.base.service.MatrHisService;
import com.scs.application.modules.base.service.MatrService;
import com.scs.application.modules.dept.service.*;
import com.scs.application.modules.purchase.service.OrderItemService;
import com.scs.application.modules.purchase.service.OrderService;
import com.scs.application.modules.wm.service.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @ Description： 公共服务方法
 */
@Slf4j
@Component
public class SingleService {
    private  SingleService() {}
    public static SingleService inst;
    @Autowired
    public ApplyAutoService applyAutoService;
    @Autowired
    public DistService distService;
    @Autowired
    public TransferService transferService;
    @Autowired
    public OrderService orderService;
    @Autowired
    public OrderItemService orderItemService;
    @Autowired
    public DemandSumService demandSumService;
    @Autowired
    public DemandSumItemService demandSumItemService;
    @Autowired
    public DistItemService distItemService;
    @Autowired
    public TransferDemandService transferDemandService;

    @Autowired
    public DemandItemService demandItemService;
    @Autowired
    public MatrService matrService;
    @Autowired
    public OprtUseService oprtUseService;
    @Autowired
    public DeptService deptService;
    @Autowired
    public MatrHisService matrHisService;
    @Autowired
    public InOrderService inOrderService;


    @PostConstruct
    public void init() {
        inst = this;
        inst.applyAutoService = this.applyAutoService;
        inst.distService = this.distService;
        inst.transferService = this.transferService;
        inst.orderService = this.orderService;
        inst.demandSumService = this.demandSumService;
        inst.distItemService = this.distItemService;
        inst.transferDemandService = this.transferDemandService;
        inst.demandSumItemService = this.demandSumItemService;
        inst.orderItemService = this.orderItemService;
        inst.demandItemService = this.demandItemService;
        inst.matrService = this.matrService;
        inst.oprtUseService = this.oprtUseService;
        inst.deptService = this.deptService;
        inst.matrHisService = this.matrHisService;
        inst.inOrderService = this.inOrderService;
    }
}
